/**
 * @Description: 用于测试歌单业务
 * @Author: yang_yong
 */
@Slf4j
@SpringBootTest
public class TestSongListService {

    @Autowired
    private SongListService songListService;

    @Test
    public void testAddSongList(){
        SongListRequest addSongListRequest = new SongListRequest();
        addSongListRequest.setTitle("我喜欢的");
        addSongListRequest.setIntroduction("包含所有已经听过且比较喜欢的歌曲");
        addSongListRequest.setIntroduction("华语");
        log.info("测试新增歌单：{}", songListService.addSongList(addSongListRequest));
    }

    @Test
    public void testUpdateSongList(){
        SongListRequest updateSongListRequest = new SongListRequest();
        updateSongListRequest.setId(88);
        updateSongListRequest.setTitle("我爱听的");
        updateSongListRequest.setIntroduction("包含所有已经听过且比较喜欢的歌曲");
        updateSongListRequest.setIntroduction("华语");
        log.info("测试编辑歌单：{}", songListService.updateSongListMsg(updateSongListRequest));
    }


    @Test
    public void testDeleteSongList(){
        log.info("测试删除歌单：{}", songListService.deleteSongList(86));
    }

}

